package com.ruoyi.bi.domain.portal;

import com.ruoyi.bi.domain.common.BaseEntity;
import com.ruoyi.bi.util.RSBIUtils;
import lombok.Data;

import java.util.Date;

@Data
public class ShareUrl extends BaseEntity {

    private String token;

    /** 1true, 0 false */
    private Integer islogin;

    /** 小时为单位， -1表示不限制 */
    private Integer yxq;

    private Date crtdate;

    private String reportId;

	/** //创建人 */
    private Integer crtUser;

	/** //类型，1 报表， 2 仪表盘 */
    private Integer rType;

	public void setrType(Integer rType) {
		this.rType = rType;
	}

	@Override
	public void validate() {
		this.token = RSBIUtils.htmlEscape(this.token);
		this.reportId = RSBIUtils.htmlEscape(this.reportId);
	}
}
